import 'package:flutter/material.dart';

class Demo02Widget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(icon: Icon(Icons.arrow_back), onPressed: (){
          Navigator.of(context).pop();
        }),
        title: Text('使用Material组件'),
      ),
      body: Center(
        child: Text('欢迎使用Material组件'),
      ),
      floatingActionButton: FloatingActionButton(
          tooltip: 'Add',
          child: Icon(Icons.add),
          onPressed: null
      ),
    );
  }

}